package com.test;

import com.digiwin.middleware.service.IamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author yanggld
 * @Date 2020/2/14-17:45
 * @Description
 */
@RestController
@SpringBootApplication
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

	@Autowired
	private IamService iamService;

	@GetMapping("/grantAccessToken")
	public String grantAccessToken(String userId,String tenantId){
		return iamService.grantAccessToken(userId,tenantId);
	}
}
